﻿<Window x:Class="MyAnimelistRecommender.SplashScreen"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Bootloader" Background="Transparent" Topmost="True" ShowInTaskbar="False" WindowState="Maximized" AllowsTransparency="True" WindowStyle="None" Opacity="0" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded" ResizeMode="NoResize">
    <Window.Triggers>
        <EventTrigger RoutedEvent="Window.Loaded">
            <SoundPlayerAction Source="pack://siteoforigin:,,,/Media/wrrrm.wav" />
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetProperty="Opacity" To="1" />
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetName="yay" Storyboard.TargetProperty="Angle" From="-15" To="15" IsAdditive="False" >
                        <DoubleAnimation.EasingFunction>
                            <ElasticEase Oscillations="300" EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetName="yay2" Storyboard.TargetProperty="CenterX" From="182" To="1820" >
                        <DoubleAnimation.EasingFunction>
                            <ElasticEase Oscillations="20" EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetName="yay2" Storyboard.TargetProperty="CenterY" From="75.5" To="755" >
                        <DoubleAnimation.EasingFunction>
                            <ElasticEase Oscillations="20" EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetName="yay2" Storyboard.TargetProperty="ScaleX" From="1" To="5" >
                        <DoubleAnimation.EasingFunction>
                            <ElasticEase Oscillations="20" EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                    <DoubleAnimation Duration="00:00:04" Storyboard.TargetName="yay2" Storyboard.TargetProperty="ScaleY" From="1" To="5" >
                        <DoubleAnimation.EasingFunction>
                            <ElasticEase Oscillations="20" EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                    <DoubleAnimation BeginTime="00:00:06" Duration="00:00:0.500" Storyboard.TargetProperty="Opacity" From="1" To="0" Completed="DoubleAnimation_Completed" />
                    <DoubleAnimation Duration="00:00:07" Storyboard.TargetName="yayColor" Storyboard.TargetProperty="Offset" From=".401" To=".8" >
                        <DoubleAnimation.EasingFunction>
                            <CircleEase EasingMode="EaseInOut"/>
                        </DoubleAnimation.EasingFunction>
                    </DoubleAnimation>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Window.Triggers>
    <Grid Height="131" Width="364">
        <!--<Grid.RenderTransform>
        </Grid.RenderTransform>-->
        <Grid.LayoutTransform>
            <TransformGroup>
                <RotateTransform x:Name="yay" CenterX="182" CenterY="75.5" />
                <ScaleTransform x:Name="yay2" CenterX="182" CenterY="75.5" />
                <TranslateTransform x:Name="yay3" />
            </TransformGroup>
        </Grid.LayoutTransform>
        <Border BorderBrush="#ff000000" BorderThickness="1">
            <Border.Background>
                <RadialGradientBrush GradientOrigin="1,1" Center="0,1" RadiusX="1" RadiusY="1">
                    <RadialGradientBrush.GradientStops>
                        <GradientStop Color="#0764c1" Offset="0" />
                        <GradientStop Color="#0764c1" Offset="0.20" />
                        <GradientStop Color="#0764c1" Offset="0.40" />
                        <GradientStop x:Name="yayColor" Color="#00aaff" Offset="0.90" />
                        <GradientStop Color="#082448" Offset="1.0" />
                    </RadialGradientBrush.GradientStops>
                </RadialGradientBrush>
            </Border.Background>
            <Grid>
                <TextBlock Text="MyAnimeList Recommender" FontSize="20" Opacity="0.3" FontWeight="Bold" Margin="2 22 40 0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                <TextBlock Text="MyAnimeList Recommender" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" Margin="0 20 40 0" VerticalAlignment="Center" />
                <TextBlock Text="MyAnimeList Recommender" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center" Margin="0 20 40 0" VerticalAlignment="Center">
                    <TextBlock.Foreground>
                        <LinearGradientBrush StartPoint="0 0" EndPoint=".3 10">
                             <GradientStopCollection>
                                 <GradientStop x:Name="Yay1" Color="Black" Offset="-.55" />
                                 <GradientStop x:Name="Yay2" Color="#45d0fe" Offset="-.4" />
                                 <GradientStop x:Name="Yay3" Color="Black" Offset="-.25" />
                                 <GradientStop Color="Black" Offset="1" />
                             </GradientStopCollection>
                        </LinearGradientBrush>
                    </TextBlock.Foreground>
                    <TextBlock.Triggers>
                       <EventTrigger RoutedEvent="Window.Loaded">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation BeginTime="00:00:01" Duration="00:00:04" Storyboard.TargetName="Yay1" Storyboard.TargetProperty="Offset" From="-.55" To="2" />
                                    <DoubleAnimation BeginTime="00:00:01" Duration="00:00:04" Storyboard.TargetName="Yay2" Storyboard.TargetProperty="Offset" From="-.4" To="2.8" />
                                    <DoubleAnimation BeginTime="00:00:01" Duration="00:00:04" Storyboard.TargetName="Yay3" Storyboard.TargetProperty="Offset" From="-.25" To="2.2" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </TextBlock.Triggers>
                </TextBlock>
                <ProgressBar Value="1" Maximum="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="5" Margin="0 60 0 0" BorderThickness="0" />
            </Grid>
        </Border>
    </Grid>
</Window>